<?php
/**
 * Created by PhpStorm.
 * User: hui
 * Date: 16/8/5
 * Time: 14:35
 */

namespace app\index\model;

use think\Model;

class Sell extends Model
{
    public function sell_d()
    {
        return $this->hasMany('SellD', 'MasterID');
    }

    public function personnel()
    {
        return $this->hasOne('Personnel', 'ID', 'PersonnelID');
    }
}